home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-26 | 1.6 KB | 34 lines | [TEXT/ScoM] |
- CAN I REDEFINE HELP STRINGS
-
- > When using oscillators in the vector generator, such as gen-sin, is it
- >possible to redefine the default returned text so that in the sample
- >argument, the word "samples" is returned instead of "256"? I prefer to use
- > (setq samples n)
-
- You can customize all using def-help. Look file Example Module, you'll
- find how to use def-help from there. Then define the function name and
- the help string. Store the file into environment/extensions so it will
- be loaded when you startup SCOM, and you'll have customized help
- strings.
-
- (def-help '(
- gen-sin "(gen-sin 1 1 samples 0)"
- ))
-
- You must write the above into a new file, call it for example
- help definitions. Then save the file into Environment/Extensions
- folder. SCOM loads all extensions in this folder while booting up. To
- add new functions to the menus is done in the same way. Locate and
- open the Example Module in the Tools menu, then write your new functions
- using this as an example, and the menus and help strings, and then
- save it to Environment/Extensions folder. Give it a name like
- my functions or other that you can later recognize it easily. You
- can later also access this file directly selecting it from the Tools/
- extensions menu.
-
- It is not suggested to add menu items to existing menus because if
- the menus change your progam may not anymore find them. It is better if
- you define your own menu, described in the Example Module file. This
- menu will appear on the menu bar like PowerPack and MRAC. You can later
- compile your file to plug-in and copy protect it if needed (like MRAC).
-